-- GENERATED SPELL FOR [Arakkoa Windwalker] --


function spell0_32226(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(54516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32226', 20268, 1)
end

function spell1_32226(pUnit, Event) --@Break Bonds,Self--
pUnit:FullCastSpellOnTarget(59463,pUnit)
pUnit:RegisterEvent('Sorts_32226', 2500, 1)
end

function spell2_32226(pUnit, Event) --@Chain Heal,Heal--
pUnit:FullCastSpellOnTarget(59473,pUnit)
pUnit:RegisterEvent('Sorts_32226', 1000, 1)
end

function spell3_32226(pUnit, Event) --@Earth Shield,n/a--
pUnit:FullCastSpellOnTarget(59471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32226', 625, 1)
end

function spell4_32226(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(54511,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32226', 2337, 1)
end

function spell5_32226(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(53044,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32226', 2000, 1)
end

function spell6_32226(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32226', 12252, 1)
end

function Sorts_32226(pUnit, Event)
local choix_sorts_32226 = math.random(0, 6)
if choix_sorts_32226 == 0 then
pUnit:RegisterEvent('spell0_32226', 1, 1)
end
if choix_sorts_32226 == 1 then
pUnit:RegisterEvent('spell1_32226', 1, 1)
end
if choix_sorts_32226 == 2 then
pUnit:RegisterEvent('spell2_32226', 1, 1)
end
if choix_sorts_32226 == 3 then
pUnit:RegisterEvent('spell3_32226', 1, 1)
end
if choix_sorts_32226 == 4 then
pUnit:RegisterEvent('spell4_32226', 1, 1)
end
if choix_sorts_32226 == 5 then
pUnit:RegisterEvent('spell5_32226', 1, 1)
end
if choix_sorts_32226 == 6 then
pUnit:RegisterEvent('spell6_32226', 1, 1)
end
end

function mob32226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32226', math.random(1500, 3000), 1)
end

function mob32226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32226, 1, 'mob32226_Action')
RegisterUnitEvent(32226, 2, 'mob32226_Leave')
RegisterUnitEvent(32226, 3, 'mob32226_Kill')
RegisterUnitEvent(32226, 4, 'mob32226_Die')
